Skip to content

[PM-25820] Return DeleteAttachmentResponseModel from cipher attachment delete endpoints#7013

Merged
gbubemismith merged 3 commits intomainfrom
vault/PM-25820-cipher-response-model
Feb 17, 2026
Merged

[PM-25820] Return DeleteAttachmentResponseModel from cipher attachment delete endpoints#7013
gbubemismith merged 3 commits intomainfrom
vault/PM-25820-cipher-response-model

Conversation

@gbubemismith
Copy link
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-25820

📔 Objective

Updates the DeleteAttachment and DeleteAttachmentAdmin endpoints to return a DeleteAttachmentResponseModel instead of returning DeleteAttachmentResponseData which contained the cipher entity.

📸 Screenshots

@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2026

Logo
Checkmarx One – Scan Summary & Detailsf9838a43-2b0f-4d58-833e-f8a223d86a74

New Issues (1)

Checkmarx found the following issues in this Pull Request

# Severity Issue Source File / Package Checkmarx Insight
1 MEDIUM CSRF /src/Api/Vault/Controllers/CiphersController.cs: 1527
detailsMethod at line 1527 of /src/Api/Vault/Controllers/CiphersController.cs gets a parameter from a user request from id. This parameter value flows ...
Attack Vector
Fixed Issues (1)

Great job! The following issues were fixed in this Pull Request

Severity Issue Source File / Package
MEDIUM CSRF /src/Api/Vault/Controllers/CiphersController.cs: 1527

@gbubemismith gbubemismith enabled auto-merge (squash) February 17, 2026 20:52
@sonarqubecloud
Copy link

@gbubemismith gbubemismith merged commit 88fa59a into main Feb 17, 2026
40 checks passed
@gbubemismith gbubemismith deleted the vault/PM-25820-cipher-response-model branch February 17, 2026 21:06
@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.48%. Comparing base (209ec4c) to head (c56bbb7).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Api/Vault/Controllers/CiphersController.cs 0.00% 4 Missing ⚠️
...t/Models/Response/DeleteAttachmentResponseModel.cs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7013      +/-   ##
==========================================
- Coverage   56.48%   56.48%   -0.01%     
==========================================
  Files        2002     2003       +1     
  Lines       88314    88318       +4     
  Branches     7892     7892              
==========================================
+ Hits        49887    49888       +1     
- Misses      36586    36589       +3     
  Partials     1841     1841              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments